//
//  FirstToThirdViewController.m
//  UI10_作业
//
//  Created by dllo on 16/3/22.
//  Copyright © 2016年 付冬梅. All rights reserved.
//

#import "FirstToThirdViewController.h"

@interface FirstToThirdViewController ()

@property (nonatomic, retain) UILabel *name;

@end

@implementation FirstToThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor cyanColor];
    self.navigationItem.title = @"联系人详情";
    
    [self createContact];
}

- (void)createContact {
    UILabel *nameLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(100, 100, 50, 50)];
    nameLabel1.text = @"姓名";
    [self.view addSubview:nameLabel1];
    [nameLabel1 release];
    self.name = [[UILabel alloc] initWithFrame:CGRectMake(160, 100, 150, 50)];
    [self.view addSubview:_name];
    _name.layer.borderWidth = 1;
    _name.layer.cornerRadius = 10;
    _name.layer.masksToBounds = YES;
    _name.text = _nameStr;
    _name.textAlignment = NSTextAlignmentCenter;
    [_name release];
    UILabel *phoneLabel1 = [[UILabel alloc] initWithFrame:CGRectMake(100, 200, 50, 50)];
    phoneLabel1.text = @"电话";
    [self.view addSubview:phoneLabel1];
    [phoneLabel1 release];
    UILabel *phone = [[UILabel alloc] initWithFrame:CGRectMake(160, 200, 150, 50)];
    [self.view addSubview:phone];
    phone.layer.borderWidth = 1;
    phone.layer.cornerRadius = 10;
    phone.layer.masksToBounds = YES;
    phone.text = _phone;
    [phone release];
    phone.textAlignment = NSTextAlignmentCenter;
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
